package docbookarchivemanager.converter.elements;

import java.util.ArrayList;

/**
 *
 * @author Jakub Hrachovec
 */
public class Element {

    private String name;
    private String namespace;
    private String namespace_prefix;
    private ArrayList<Attribute> attributes = new ArrayList<>();

    public Element(String name) {
        this.name = name;
    }

    public Element(String name, String namespace, String namespace_prefix, ArrayList<Attribute> attributes) {
        this.name = name;
        this.attributes = attributes;
        this.namespace = namespace;
        this.namespace_prefix = namespace_prefix;

    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the attributes
     */
    public ArrayList<Attribute> getAttributes() {
        return attributes;
    }

    public void setAttributes(ArrayList<Attribute> attributes) {
        this.attributes = attributes;
    }

    /**
     * @param attribute
     */
    public void addAttribute(Attribute attribute) {
        this.attributes.add(attribute);
    }

    /**
     * @return the namespace
     */
    public String getNamespace() {
        return namespace;
    }

    /**
     * @param namespace the namespace to set
     */
    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    /**
     * @return the namespace_prefix
     */
    public String getNamespace_prefix() {
        return namespace_prefix;
    }

    /**
     * @param namespace_prefix the namespace_prefix to set
     */
    public void setNamespace_prefix(String namespace_prefix) {
        this.namespace_prefix = namespace_prefix;
    }
}
